<script id="product_list_tpl" type="text/html">
    <ul class="product_list content infinite-scroll scroll_y">
        {{# if(d.length == 0){ }}
        <div class="nomore_tips"><p>还没有商品? 赶紧去上传吧!</p></div>
        {{# } }}
        {{# if(d.length > 0){ }}
        {{# for( var i = 0 ;  i < d.length ; i++){ }}
        <li><a href="#"><img src="{{d[i].mainImage != undefined ?d[i].mainImage: '/public/sui/images/nopic.gif'}}"></a>
            <div class="tit">
                <h3>{{d[i].name}}</h3>
                <span>{{d[i].spec != undefined ? d[i].spec : '--'}}<i>￥{{d[i].merchantPrice != undefined ? d[i].merchantPrice : 0}}</i></span>
                <p></p>
                <span>销量：{{d[i].salesvolumes != null ? d[i].salesvolumes : 0}}</span>
                <p></p>
                <span>访问量：{{d[i].visitCount != null ? d[i].visitCount : 0}}</span>
            </div>
            <div class="rbtn">
                <a href="/product/detail/{{d[i].id}}" external><span class="btn"> 修改</span></a>
                <span class="btn1 deleted-ok" onclick="delProduct('{{d[i].id}}')">删除</span>
            </div>
        </li>
        {{# } }}
        {{# } }}
    </ul>
</script>